import {request} from '@/utils/request';

/**
 *设备规格信息数据信息数据集，分页显示
 */
export function findPageListApi(data: any) {
  return request({
      url: '/bms/device/spec/findPageList',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false,
    });
}


/**
 *修改/编辑设备规格信息数据信息
 */
export function modifyApi(data: any) {
  return request({
      url: '/bms/device/spec/modify',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false,
    });
}

/**
 *设备规格信息数据查询 -
 */
export function findByIdApi(data: any) {
  return request({
      url: '/bms/device/spec/findById',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false,
    });
}


/**
 *设备新增
 */
export function insertApi(data: any) {
  return request({
      url: '/bms/device/spec/insert',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false,
    });
}

/**
 *厂商
 */
export function listCustomerPageApi(data: any) {
  return request({
      url: '/bms/customer/listCustomerPage',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false,
    });
}

/**
 *厂商
 */
export function findDeviceSpecByIdApi(data: any) {
  return request({
      url: '/bms/device/spec/findById',
      method: 'post',
      data,
    },
    {
      isDataDirectly: true,
    });
}


